package com.tomes.blockcanary;

import android.app.Application;
import android.content.Context;
import android.os.Environment;
import android.util.Log;

import com.github.moduth.blockcanary.BlockCanary;

/**
 * @author Cwugs.Chen.
 * @time 2016/8/29  22:15
 * @desc ${TODD}
 */
public class MyApp extends Application {
    public static Context getmContext() {
        return mContext;
    }

    private static Context mContext;
    @Override
    public void onCreate() {
        super.onCreate();
        mContext=this;
//        LeakCanary.install(this);
        BlockCanary.install(this, new AppBlockCanaryContext()).start();
       String path= Environment.getDataDirectory()+"/tomesblockCanary/";
        Log.i("Tomes","0706"+ Environment.getExternalStorageDirectory().getAbsolutePath()+"/blockCanary" );
        Log.i("Tomes","07061"+ path );
//        File[] logFiles = BlockCanaryInternals.getLogFiles();
//        Log.i("Tomes","07061"+ logFiles[0].getAbsolutePath() );
    }
}
